<%-- 
    Document   : galleryoutfit
    Created on : 24-mag-2014, 12.02.57
    Author     : Gianna
--%>
<%@page import="ejb.Outfit"%>
<%@page import="java.util.List"%>       
<script>
    <%
        List<Outfit> listagallery = (List) request.getAttribute("listagallery");
        int list = (listagallery.size() - 1);
    %>
</script> 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="EN" lang="EN" dir="ltr">
    <head profile="http://gmpg.org/xfn/11">
        <title>What To Wear | Gallery</title>
        <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
        <meta http-equiv="imagetoolbar" content="no" />
        <link rel="stylesheet" href="styles/layout.css" type="text/css" />
    </head>
    <body id="top">

        <!-- ####################################################################################################### -->
        <div class="wrapper row2">
            <div class="rnd">
                <!-- ###### -->
                <div id="topnav">
                    <jsp:include page="header.jsp"/>
                </div>
                </div>
                <!-- ###### -->
            </div>
        </div>
                <br>
        <div class="wrapper row3">
            <div class="rnd">
                <div id="container" class="clear">
                    <!-- ############ -->
                    <div id="portfolio">
                        <!-- Slider immagini outfit-->
                        <marquee>   
                            <%
                                for (int i = list; i >= 0; i--) {
                                    if (listagallery.get(i).getOutfit() != null) {
                            %>
                            <img  width="400" height="auto" src="images/outfit/<%= listagallery.get(i).getOutfit()%>"></img>
                            <%
                            } else {
                                String c = String.valueOf(listagallery.get(i).getOutfitbase64());
                            %>
                            <!-- Visualizza immagini salvate in base64 -->
                            <img width="400" height="auto" src=<%=c%> > </img> 
                            <%
                                    }
                                }
                            %>
                        </marquee>   
                    </div>
                </div>
            </div>
        </div>
        <div class="wrapper row4">
            <div class="rnd">
               <div id="footer" class="clear">
                       <h7>Copyright: </h7><img src="images/logo2_WTW.png" width="100px" ></img>  Gemma Contini & Gianna Ladu 
               </div>
            </div>
 





        <!-- ####################################################################################################### -->
    </body>
</html>
